package com.usian.admin.controller.v2;

import com.usian.admin.service.SensitiveService;
import com.usian.apis.admin.v2.SensitiveControllerApi;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @创建人 lingyin
 * @创建时间 2022/10/10
 * @描述
 */
@RestController
@RequestMapping("api/v2/sensitive")
@CrossOrigin
public class SensitiveController2 implements SensitiveControllerApi {

    @Autowired
    SensitiveService sensitiveService;
    /**
     * @param ids
     * @return ResponseResult
     * @描述 批量删除敏感词信息
     * @params [ids]
    */
    @Override
    @PostMapping("/deletes")
    public ResponseResult deletes(@RequestBody Integer[] ids) {
        return sensitiveService.deletes2(ids);
    }
}
